import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSStatueHelper } from "./SeqSStatueHelper";
type int = number;
//class SMagicTowerStatues
    
    export  class SMagicTowerStatues extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SMagicTowerStatues();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.floor);
            arg1.writeInt(this.mapId);
            SeqSStatueHelper.write(arg1, this.statues);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.floor = arg1.readInt();
            this.mapId = arg1.readInt();
            this.statues = SeqSStatueHelper.read(arg1);
            return;
        }

        public /* const */_type: int=69;

        public /* var */floor: int;

        public /* var */mapId: int;

        public /* var */statues: Array<any>;

        public static /* var */_regist: SMagicTowerStatues;
    }

            SMagicTowerStatues._regist = new SMagicTowerStatues(true);
        